In regedit, navigate to the location below. (see screenshot below)

Code:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

In the right pane of Shell Folders, right click on the user folder in the Name column in the registry (see table below) that you want to restore, then click on Modify. (see screenshot above)
NOTE: If the Name entry in the table below is not there, then right click on a empty space in the right pane, click on New and String Value, and give it the name in bold below for that user folder.

User Folder 	Name in Registry

Contacts 	{56784854-C6CB-462B-8169-88E350ACB882}
Desktop 	Desktop
Documents 	Personal
Downloads 	{374DE290-123F-4565-9164-39C4925E467B}
Favorites 	Favorites
Links 	{BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968}
Music 	My Music
Pictures 	My Pictures
Saved Games 	{4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4}
Searches 	{7D1D3A04-DEBB-4115-95CF-2F29DA2920DA}
Videos 	My Videos

20. Type in the full default path (see table below) of the user folder, and click on OK. (see screenshot below)

21. Close Regedit.

22. Open an elevated command prompt.

23. In the elevated command prompt, Copy and Paste the command below for the user folder icon that you want to restore to default. (see table below)
NOTE: This will set the user folder attributes back to default. You can Copy and Paste these to make it easier for you.
User Folder 	Command
Contacts 	attrib +r -s -h %USERPROFILE%\Contacts /S /D
Desktop 	attrib +r -s -h %USERPROFILE%\Desktop /S /D
Documents 	attrib +r -s -h %USERPROFILE%\Documents /S /D
Downloads 	attrib +r -s -h %USERPROFILE%\Downloads /S /D
Favorites 	attrib +r -s -h %USERPROFILE%\Favorites /S /D
Links 	attrib +r -s -h %USERPROFILE%\Links /S /D
Music 	attrib +r -s -h %USERPROFILE%\Music /S /D
Pictures 	attrib +r -s -h %USERPROFILE%\Pictures /S /D
Saved Games 	attrib +r -s -h %USERPROFILE%\"Saved Games" /S /D
Searches 	attrib +r -s -h %USERPROFILE%\Searches /S /D
Videos 	attrib +r -s -h %USERPROFILE%\Videos /S /D
24. Close the elevated command prompt.

25. Open the Start Menu, then Copy and Paste the Shell command (see table below) in the search box for the User folder that you want to restore, and press Enter.

If this opens the missing personal user folder(s), then you are done and can skip step 26 and go to step 27 instead.
User Folder 	Shell Command

Contacts 	shell:Contacts
Desktop 	shell:desktop
Documents 	shell:Personal
Downloads 	shell:downloads
Favorites 	shell:Favorites
Links 	shell:Links
Music 	shell:My Music
Pictures 	shell:My Pictures
Saved Games 	shell:SavedGames
Searches 	shell:Searches
Videos 	shell:My Video

26. Log off and log on, or restart the computer to finish restoring the user folder location.
NOTE: Sometimes you may need to restart more than once for the changes to be applied.

27. When done, you can delete the downloaded .reg file(s) if you like.